<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "b_examine".
 *
 * @property string $id
 * @property string $t_course_info_id 课程模板id
 * @property string $t_base_user_id 用户id
 * @property int $px 排名
 * @property string $create_by
 * @property string $create_time
 * @property string $update_by
 * @property string $update_time
 * @property int $del_flag
 */
class BExamine extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'b_examine';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['t_course_info_id', 't_base_user_id', 'px', 'create_by', 'update_by', 'del_flag'], 'integer'],
            [['create_by', 'create_time', 'update_by', 'update_time', 'del_flag'], 'required'],
            [['create_time', 'update_time'], 'safe'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            't_course_info_id' => 'T Course Info ID',
            't_base_user_id' => 'T Base User ID',
            'px' => 'Px',
            'create_by' => 'Create By',
            'create_time' => 'Create Time',
            'update_by' => 'Update By',
            'update_time' => 'Update Time',
            'del_flag' => 'Del Flag',
        ];
    }
}
